<template>
  <view
    class="useritem"
    @click="$z.gopage(`/pages/USearch/uedt?uUser=${item.uUser}`)"
  >
    <view>
      <view>{{ item.uUser }}</view>
      <view>{{ item.uxm }}</view>
      <view>{{ item.bz }}</view>
    </view>
    <view>
      <u-tag
        :text="tagtext"
        type="primary"
        mode="dark"
        shape="circle"
        size="mini"
      />
    </view>
  </view>
</template>
<script>
  export default {
    props: {
      item: {
        type: Object,
        default: () => {
          return {};
        },
      },
    },
    data() {
      return {};
    },
    computed: {
      tagtext() {
        let r = this.$z.defaultValue.utype.find((e) => {
          return e.value == this.item.utype;
        });
        return r ? r.label : this.item.utype;
      },
    },
    methods: {},
  };
</script>

<style lang="scss" scoped>
  .useritem {
    display: flex;
    justify-content: space-between;
    align-items: center;
    line-height: 60rpx;
    min-height: 80rpx;
    padding: 0 30rpx;
    position: relative;
    &::after {
      content: "";
      position: absolute;
      left: 30rpx;
      right: 0;
      bottom: 0;
      height: 2rpx;
      background: #eee;
    }
  }
</style>
